package com.xc.hotelmgr.datapusherali.service.mybatis.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xc.hotelmgr.datapusherali.mapper.OpRoomPriceMapper;
import com.xc.hotelmgr.datapusherali.pojo.mybatis.OpRoomPrice;
import com.xc.hotelmgr.datapusherali.service.mybatis.OpRoomPriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class OpRoomPriceServiceImpl extends ServiceImpl<OpRoomPriceMapper, OpRoomPrice> implements OpRoomPriceService {

    @Autowired
    private OpRoomPriceMapper opRoomPriceMapper;


    @Override
    public List<OpRoomPrice> listAll() {
        return opRoomPriceMapper.listAll();
    }

    @Override
    public OpRoomPrice getById(Integer id) {
        return opRoomPriceMapper.getById(id);
    }

    @Override
    public int insert(OpRoomPrice opRoomPrice) {
        return opRoomPriceMapper.insert(opRoomPrice);
    }

    @Override
    public int insertIgnoreNull(OpRoomPrice opRoomPrice) {
        return opRoomPriceMapper.insertIgnoreNull(opRoomPrice);
    }

    @Override
    public int update(OpRoomPrice opRoomPrice) {
        return opRoomPriceMapper.update(opRoomPrice);
    }

    @Override
    public int updateIgnoreNull(OpRoomPrice opRoomPrice) {
        return opRoomPriceMapper.updateIgnoreNull(opRoomPrice);
    }

    @Override
    public int delete(OpRoomPrice opRoomPrice) {
        return opRoomPriceMapper.delete(opRoomPrice);
    }

    @Override
    public OpRoomPrice getByDtId(int dtId, Long roomId) {
        return opRoomPriceMapper.getByDtId(dtId, roomId);
    }
}
